package com.sansecy.customview.activity;

import android.os.Bundle;
import android.widget.Toast;

import androidx.appcompat.app.AppCompatActivity;

import com.sansecy.customview.R;
import com.sansecy.customview.view.CircleRingView;

public class CircleRingActivity extends AppCompatActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_circle_ring);
        CircleRingView circleRingView = findViewById(R.id.circleRingView);
        circleRingView.setData(9999 ,1000, false, 100);
        circleRingView.isShowQuestion(true, R.drawable.fastplan_ic_question);
        circleRingView.setOnQuestionClickListener(new CircleRingView.OnQuestionClickListener() {
            @Override
            public void onClick() {
                Toast.makeText(CircleRingActivity.this, "问题被点击", Toast.LENGTH_SHORT).show();
            }
        });
    }
}
